Pronamic\WordPress\Pay\Subscriptions\SubscriptionPhase A

Total Complexity 73
Dependencies 12
Dependents 8
Total lines 674
Lines of code 262
Logical lines of code 122
Comment lines 301
Methods 38
Properties 10

Methods 38

Method Rating Maintainability Complexity Lines of code
from_json()
A
43 15 48
get_period()
S
57 6 17
align()
S
52 4 23
jsonSerialize()
S
50 3 29
is_completed_to_date()
S
67 3 9
get_next_date()
S
67 3 9
get_periods_created()
S
62 2 12
get_total_periods()
S
68 2 7
next_period()
S
68 2 8
add_interval()
S
71 2 6
set_total_periods()
S
78 2 3
get_periods_remaining()
S
66 2 8
set_end_date()
S
78 2 3
set_canceled_at()
S
81 1 3
set_trial()
S
81 1 3
get_sequence_number()
S
82 1 3
set_sequence_number()
S
81 1 3
get_start_date()
S
82 1 3
get_next_period()
S
80 1 3
set_start_date()
S
80 1 3
get_end_date()
S
82 1 3
get_interval()
S
82 1 3
all_periods_created()
S
80 1 3
is_infinite()
S
80 1 3
is_trial()
S
82 1 3
get_amount()
S
82 1 3
set_prorated()
S
81 1 3
is_prorated()
S
82 1 3
set_alignment_rate()
S
81 1 3
get_alignment_rate()
S
82 1 3
is_alignment()
S
80 1 3
get_subscription()
S
82 1 3
set_periods_created()
S
79 1 3
set_next_date()
S
81 1 3
is_canceled()
S
80 1 3
get_canceled_at()
S
82 1 3
set_amount()
S
81 1 3
__construct()
S
67 1 8